﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using JXT.PrimaryKey.Batman.Core.WcfService;

namespace JXT.PrimaryKey.Batman.WcfService.Models.Quotation
{
    /// <summary>
    /// 实时行情&交易数据
    /// </summary>
    [DataContract(Namespace = ServiceEnvironment.ModelNamespace)]
    public class RealTimeQuote
    {
        /// <summary>
        /// 证券代码
        /// </summary>
        [DataMember]
        public string Code { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        [DataMember]
        public DateTime UpdateTime { get; set; }

        /// <summary>
        /// 当前价格
        /// </summary>
        [DataMember]
        public double LastPrice { get; set; }

        /// <summary>
        /// 成交量
        /// </summary>
        [DataMember]
        public long TradingVolume { get; set; }

        /// <summary>
        /// 成交额
        /// </summary>
        [DataMember]
        public long Turnover { get; set; }

        /// <summary>
        /// 开盘价
        /// </summary>
        [DataMember]
        public double OpenPrice { get; set; }

        /// <summary>
        /// 昨收价
        /// </summary>
        [DataMember]
        public double PrevClosePrice { get; set; }

        /// <summary>
        /// 最高价
        /// </summary>
        [DataMember]
        public double HighestPrice { get; set; }

        /// <summary>
        /// 最低价
        /// </summary>
        [DataMember]
        public double LowestPrice { get; set; }

        /// <summary>
        /// 买价1
        /// </summary>
        [DataMember]
        public double BuyPrice1 { get; set; }

        /// <summary>
        /// 买价2
        /// </summary>
        [DataMember]
        public double BuyPrice2 { get; set; }

        /// <summary>
        /// 买价3
        /// </summary>
        [DataMember]
        public double BuyPrice3 { get; set; }

        /// <summary>
        /// 买价4
        /// </summary>
        [DataMember]
        public double BuyPrice4 { get; set; }

        /// <summary>
        /// 买价5
        /// </summary>
        [DataMember]
        public double BuyPrice5 { get; set; }

        /// <summary>
        /// 买量1
        /// </summary>
        [DataMember]
        public uint BuyVolume1 { get; set; }

        /// <summary>
        /// 买量2
        /// </summary>
        [DataMember]
        public uint BuyVolume2 { get; set; }

        /// <summary>
        /// 买量3
        /// </summary>
        [DataMember]
        public uint BuyVolume3 { get; set; }

        /// <summary>
        /// 买量4
        /// </summary>
        [DataMember]
        public uint BuyVolume4 { get; set; }

        /// <summary>
        /// 买量5
        /// </summary>
        [DataMember]
        public uint BuyVolume5 { get; set; }

        /// <summary>
        /// 卖价1
        /// </summary>
        [DataMember]
        public double SellPrice1 { get; set; }

        /// <summary>
        /// 卖价2
        /// </summary>
        [DataMember]
        public double SellPrice2 { get; set; }

        /// <summary>
        /// 卖价3
        /// </summary>
        [DataMember]
        public double SellPrice3 { get; set; }

        /// <summary>
        /// 卖价4
        /// </summary>
        [DataMember]
        public double SellPrice4 { get; set; }

        /// <summary>
        /// 卖价5
        /// </summary>
        [DataMember]
        public double SellPrice5 { get; set; }

        /// <summary>
        /// 卖量1
        /// </summary>
        [DataMember]
        public uint SellVolume1 { get; set; }

        /// <summary>
        /// 卖量2
        /// </summary>
        [DataMember]
        public uint SellVolume2 { get; set; }

        /// <summary>
        /// 卖量3
        /// </summary>
        [DataMember]
        public uint SellVolume3 { get; set; }

        /// <summary>
        /// 卖量4
        /// </summary>
        [DataMember]
        public uint SellVolume4 { get; set; }

        /// <summary>
        /// 卖量5
        /// </summary>
        [DataMember]
        public uint SellVolume5 { get; set; }

        /// <summary>
        /// 市盈率
        /// </summary>
        [DataMember]
        public double PE { get; set; }
    }
}
